package com.dszq.article.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.dszq.model.article.dtos.ArticleHomeDto;
import com.dszq.model.article.pojos.ApArticle;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

@Mapper
public interface ApArticleMapper extends BaseMapper<ApArticle> {
    List<ApArticle> loadArticle(@Param("dto")ArticleHomeDto articleHomeDto, @Param("type")Short loadType);

    List<ApArticle> findLast5DaysArticle(Date date);
}
